package com.wangzhixuan.model.vo;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;
import com.wangzhixuan.commons.utils.StringUtils;

public class OpeVo {
	
	private String content;
	private String address;
	private String xCode;
	private String yCode;
	private Integer cusId;
	private Integer userId;
	
	public void checekParam() throws MyException{
		if(this.userId==null){
			 throw new MyException(ApiCode.CODE_501, "请重新登录");
		}
		if(this.cusId==null){
			 throw new MyException(ApiCode.CODE_501, "请选择户号");
		}
		if (StringUtils.isBlank(xCode)) {
			throw new MyException(ApiCode.CODE_501, "请选择地址");
        }
		if (StringUtils.isBlank(yCode)) {
			throw new MyException(ApiCode.CODE_501, "请选择地址");
        }
		if (StringUtils.isBlank(content)) {
			throw new MyException(ApiCode.CODE_501, "请输入内容");
        }
		if (StringUtils.isBlank(address)) {
			throw new MyException(ApiCode.CODE_501, "请选择地址");
        }
	}
	
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getxCode() {
		return xCode;
	}
	public void setxCode(String xCode) {
		this.xCode = xCode;
	}
	public String getyCode() {
		return yCode;
	}
	public void setyCode(String yCode) {
		this.yCode = yCode;
	}
	public Integer getCusId() {
		return cusId;
	}
	public void setCusId(Integer cusId) {
		this.cusId = cusId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	
}
